﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DangKy.ascx.cs" Inherits="CNLTHD_GoogleMapAPI.UserControl.DangKy" %>

<div id='dangky-box'>
<table >
	<tr>
		<td class="dangky-label">Họ Tên</td>
		<td><asp:TextBox ID="txtHoTen" runat="server"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="dangky-label">Tên tài khoản</td>
		<td>
			<asp:TextBox ID="txtTenTaiKhoan" runat="server"></asp:TextBox>
		</td>
		<td>
			<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
				ErrorMessage="Vui lòng nhập tên tài khoản" ControlToValidate="txtTenTaiKhoan" 
				ValidationGroup="DangKy">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="dangky-label">Mật khẩu</td>
		<td>
			<asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password"></asp:TextBox>
		</td>
		<td>
			<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
				ErrorMessage="Vui lòng nhập mật khẩu" ControlToValidate="txtMatKhauLai" 
				ValidationGroup="DangKy">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="dangky-label">Nhập lại Mật khẩu</td>
		<td>
			<asp:TextBox ID="txtMatKhauLai" runat="server" TextMode="Password"></asp:TextBox>
		</td>
		<td>
			<asp:CompareValidator ID="CompareValidator1" runat="server" 
				ErrorMessage="Mật khẩu không trùng khớp" ControlToCompare="txtMatKhau" 
				ControlToValidate="txtMatKhauLai" ValidationGroup="DangKy">*</asp:CompareValidator>
		</td>
	</tr>
	<tr>
		<td align="center" colspan="2">
			<asp:Button ID="Button1" runat="server" Text="Đăng ký" onclick="Button1_Click" 
				ValidationGroup="DangKy" CssClass="button" />
			<input id="Reset1" type="reset" value="Xóa dữ liệu" class='button'/></td>
	</tr>
	<tr>
		<td colspan="3">
			<div class='dangky-thongbao-loi'>
				<asp:ValidationSummary ID="ValidationSummary1" runat="server" 
							ValidationGroup="DangKy" />
				<asp:Label ID="lblThongBao" runat="server"></asp:Label>
			</div>
		</td>
	</tr>
</table>
</div>